import Vue from "vue";
import App from "./App.vue";
import router from "./router/router";
import store from "./store/store";
import "./plugins/element.js";
import "@/assets/css/global.styl";
import echarts from "echarts";
import BaiduMap from 'vue-baidu-map'


Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;
Vue.use(BaiduMap,{
  ak: 'i8B2ScAjX1HHzfyWCGtBqoW2OLYbMbFa'
})
Vue.nextTick(function () {
  var script = document.createElement("script");
  script.src ="http://api.map.baidu.com/api?v=2.0&ak=i8B2ScAjX1HHzfyWCGtBqoW2OLYbMbFa&callback=initialize";
  document.body.appendChild(script);
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
